/*
 * @Author: fangquan
 * @Date: 2020-6-19 10:00:00
 * @Last Modified by: fangquan
 * @Last Modified time: 2020-6-19 10:00:00
 * @Usage 状态管理异步方法
 */

import * as types from "./types";

export default {
	// 提交设置用户信息
	[types.SET_USER_INFO]({
		commit
	}, userInfo) {
		commit(types.SET_USER_INFO, userInfo)
	},

	// 提交设置access_token
	[types.SET_ACCESS_TOKEN]({
		commit
	}, access_token) {
		commit(types.SET_ACCESS_TOKEN, access_token)
	},

	// 提交设置AppId
	[types.SET_APP_ID]({
		commit
	}, appId) {
		commit(types.SET_APP_ID, appId)
	}
}